package com.dp.factmethod;

import org.junit.Test;

public class Client {
	
	@Test
	public void getChart() {
		//
		ChartFactory hf=new HisFactory();
		ChartFactory pie=new PieFatory();
		Chart chart=hf.productChart();
		Chart chart1=pie.productChart();
		
		chart.display();
		chart1.display();
	}
	
}
